package com.ronri.ams.bean;

import java.util.List;

/**
 * 文件：ams.java
 * 包名：com.ronri.ams.bean;
 * 说明：
 * 作者：MS During
 * 日期：2017/5/18
 * 历史：
 */
public class sampleList {


    /**
     * code : 0
     * data : {"page":1,"pageSize":5,"records":1,"rowBegin":1,"rowEnd":5,"rows":[{"sample_id":30,"inspectd_unit":17146,"sample_user":"13,14,12","sample_date":"2017-05-14 00:00:00","attach_url":"http://localhost:8080/ams/upload/image/20170515/1494813701353.jpg","breed_id":"1365,1364","inspectd_unit_name":"常州市龙兴湖水产专业合作社","sample_user_name":"质检3,质检1,质检2","breed_name":"南瓜,黄瓜"}],"total":1}
     * message : success
     * success : true
     */

    private int code;
    private DataBean data;
    private String message;
    private boolean success;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public static class DataBean {
        /**
         * page : 1
         * pageSize : 5
         * records : 1
         * rowBegin : 1
         * rowEnd : 5
         * rows : [{"sample_id":30,"inspectd_unit":17146,"sample_user":"13,14,12","sample_date":"2017-05-14 00:00:00","attach_url":"http://localhost:8080/ams/upload/image/20170515/1494813701353.jpg","breed_id":"1365,1364","inspectd_unit_name":"常州市龙兴湖水产专业合作社","sample_user_name":"质检3,质检1,质检2","breed_name":"南瓜,黄瓜"}]
         * total : 1
         */

        private int page;
        private int pageSize;
        private int records;
        private int rowBegin;
        private int rowEnd;
        private int total;
        private List<RowsBean> rows;

        public int getPage() {
            return page;
        }

        public void setPage(int page) {
            this.page = page;
        }

        public int getPageSize() {
            return pageSize;
        }

        public void setPageSize(int pageSize) {
            this.pageSize = pageSize;
        }

        public int getRecords() {
            return records;
        }

        public void setRecords(int records) {
            this.records = records;
        }

        public int getRowBegin() {
            return rowBegin;
        }

        public void setRowBegin(int rowBegin) {
            this.rowBegin = rowBegin;
        }

        public int getRowEnd() {
            return rowEnd;
        }

        public void setRowEnd(int rowEnd) {
            this.rowEnd = rowEnd;
        }

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public List<RowsBean> getRows() {
            return rows;
        }

        public void setRows(List<RowsBean> rows) {
            this.rows = rows;
        }

        public static class RowsBean {
            /**
             * sample_id : 30
             * inspectd_unit : 17146
             * sample_user : 13,14,12
             * sample_date : 2017-05-14 00:00:00
             * attach_url : http://localhost:8080/ams/upload/image/20170515/1494813701353.jpg
             * breed_id : 1365,1364
             * inspectd_unit_name : 常州市龙兴湖水产专业合作社
             * sample_user_name : 质检3,质检1,质检2
             * breed_name : 南瓜,黄瓜
             */

            private int sample_id;
            private int inspectd_unit;
            private String sample_user;
            private String sample_date;
            private String attach_url;
            private String breed_id;
            private String inspectd_unit_name;
            private String sample_user_name;
            private String breed_name;

            public int getSample_id() {
                return sample_id;
            }

            public void setSample_id(int sample_id) {
                this.sample_id = sample_id;
            }

            public int getInspectd_unit() {
                return inspectd_unit;
            }

            public void setInspectd_unit(int inspectd_unit) {
                this.inspectd_unit = inspectd_unit;
            }

            public String getSample_user() {
                return sample_user;
            }

            public void setSample_user(String sample_user) {
                this.sample_user = sample_user;
            }

            public String getSample_date() {
                return sample_date;
            }

            public void setSample_date(String sample_date) {
                this.sample_date = sample_date;
            }

            public String getAttach_url() {
                return attach_url;
            }

            public void setAttach_url(String attach_url) {
                this.attach_url = attach_url;
            }

            public String getBreed_id() {
                return breed_id;
            }

            public void setBreed_id(String breed_id) {
                this.breed_id = breed_id;
            }

            public String getInspectd_unit_name() {
                return inspectd_unit_name;
            }

            public void setInspectd_unit_name(String inspectd_unit_name) {
                this.inspectd_unit_name = inspectd_unit_name;
            }

            public String getSample_user_name() {
                return sample_user_name;
            }

            public void setSample_user_name(String sample_user_name) {
                this.sample_user_name = sample_user_name;
            }

            public String getBreed_name() {
                return breed_name;
            }

            public void setBreed_name(String breed_name) {
                this.breed_name = breed_name;
            }

            @Override
            public String toString() {
                return "RowsBean{" +
                        "sample_id=" + sample_id +
                        ", inspectd_unit=" + inspectd_unit +
                        ", sample_user='" + sample_user + '\'' +
                        ", sample_date='" + sample_date + '\'' +
                        ", attach_url='" + attach_url + '\'' +
                        ", breed_id='" + breed_id + '\'' +
                        ", inspectd_unit_name='" + inspectd_unit_name + '\'' +
                        ", sample_user_name='" + sample_user_name + '\'' +
                        ", breed_name='" + breed_name + '\'' +
                        '}';
            }
        }
    }
}
